import enum
class Orientation(enum.Enum):
    EAST='东'
    SOUTH='南'
    def info(self):
        print("这是一个代表方向【%s】的枚举" % self.value)
print(Orientation.EAST)
print(Orientation.EAST.value)
print(Orientation['EAST'].name)
print(Orientation('南').name)

for name, member in Orientation.__members__.items():
    print(name, '==>', member, ',', member.value)